TARGET=Textures.xbt
XBMCTEX=@abs_top_srcdir@/tools/TexturePacker/TexturePacker

IMAGES := $(shell find . -name "*jpg")
IMAGES += $(shell find . -name "*png")
IMAGES += $(shell find . -name "*gif")

all: $(TARGET)

.PHONY: force

$(TARGET): $(XBMCTEX) $(IMAGES)
	$(XBMCTEX) -input . -output $(TARGET)

$(XBMCTEX): force
	$(MAKE) -C @abs_top_srcdir@/tools/TexturePacker

clean:
	rm -f $(TARGET)
distclean: clean

